<?php /* Smarty version 2.6.14, created on 2015-04-07 18:38:28
         compiled from push_pemgroup.add.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'push_pemgroup.add.html', 20, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script language="javascript" src="/public/js/md5.js"></script>
<form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" enctype="multipart/form-data" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<table class="adminform" border="0" cellspacing="0">
    <tr>
        <th><b>证书添加</b><?php echo $this->_tpl_vars['systemLang']['app']; ?>
</th>
    </tr>
    <tr>
        <td>
            证 书 名:<input type="text"  style="width:450px;" name="pemName" value="<?php echo $this->_tpl_vars['data']['pemName']; ?>
" id="pemName" class="text" onkeyup="md5_result();" />
            <br/>
            证书 md5:<input type="text" name="pemmd5" id="pemmd5" readonly value="<?php echo $this->_tpl_vars['data']['pemmd5']; ?>
" class="text"  />
            <br/>
            证书文件:<?php if ($this->_tpl_vars['data']['pemPath'] == ''): ?><input type="file" name="pemPath" value="上传" />
                        <?php else: ?>
                    <input type="text" id="pemPath" readonly value="<?php echo $this->_tpl_vars['data']['pemPath']; ?>
" class="text"  />
                    <?php endif; ?>
            <br/>
            证书状态:<select name="status" >
                        <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['status'],'selected' => $this->_tpl_vars['data']['status']), $this);?>

                    </select>
            <input type="text" id="id" name="id" readonly value="<?php echo $this->_tpl_vars['data']['id']; ?>
" class="text" style="display: none"  />
        </td>
    </tr>
    <tr>
        <td><input type="submit" name="button" value="<?php echo $this->_tpl_vars['systemLang']['submit']; ?>
" class="button" /></td>
    </tr>
</table>
</form>

<script>
    function md5_result(){
        document.getElementById("pemmd5").value=hex_md5(document.getElementById("pemName").value);
    }
</script>